package eu.boss.activities;

import android.os.Bundle;

import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuItem;

import eu.boss.R;

/**
 * Displays about message
 * @author Arnaud
 *
 */
public class AboutActivity extends SherlockActivity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {	
		super.onCreate(savedInstanceState);
		super.setContentView(R.layout.about);	
		getSupportActionBar().setDisplayHomeAsUpEnabled(true);
	}
	
	/**
	 * Callback method when an actionbar's option item is selected 
	 */
	  @Override
	    public boolean onOptionsItemSelected(MenuItem item) {
	        //This uses the imported MenuItem from ActionBarSherlock
		  
		  	if (item.getTitle().toString().compareTo(getTitle().toString())==0)
			  	finish();
	        return true;
	    }
}
